package com.cuit.service;

import com.cuit.pojo.Doctor;
import com.cuit.dao.DoctorDAO;

public class DoctorService {
	Doctor d=null;
	public DoctorService(Doctor s) {
		d=s;
	}
	public DoctorService(){	}
	public boolean enroll() {
		DoctorDAO sdao=new DoctorDAO();
		if(sdao.login(d) ==true) {
			return true;
		}
		return false;
	}
	public void upda() {
		DoctorDAO sdao=new DoctorDAO();
		sdao.up(d);
	}
}
